import ocr.params as params
from ocr.db_nets.db_onnx import DBNet_onnx

def db_main(img, index=None):
    text_handle = DBNet_onnx(params.db_model_path, visualize=params.db_visualize)
    return text_handle.process(img)
